package club.pchome.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/** 匹配成功的订单表**/
@Table(name="t_order")
public class TOrder{
	/****/
	@Id
	private Long id;

	/**买方id**/
	@Column
	private Long sellUserId;

	private String sellCellPhone;

	/**买方id**/
	@Column
	private Long buyUserId;

	private String buyCellPhone;

	/**求购表订单号**/
	@Column
	private String qgOrderNumber;

	/**订单开始时间**/
	@Column
	private Date createTime;
	
	/**付款过期时间**/
	@Column
	private Date endpayTime;

	/**支付完成时间既放行开始时间**/
	@Column
	private Date payendTime;
	
	/**放行过期时间**/
	@Column
	private Date endfxTime;

	/**最终完成时间**/
	@Column
	private Date endTime;

	/**订单状态0：待付款1：待放行2：未付款过时3：未放行过时4；被举报**/
	@Column
	private Integer state;

	/**支付图片地址**/
	@Column
	private String payImg;
	
	/**购买类型 1：生物2：能量**/
	private Integer buyType;

	/**购买单价**/
	private BigDecimal buyPrice;

	/**折合人民币**/
	private BigDecimal buyRmb;

	/**当type为1的时候这里为12345分别代表生物等级，当type为2的时候为求购EG数量**/
	private Integer buyAmount;
	
	private Long remainTime;

	public Long getRemainTime() {
		return remainTime;
	}

	public void setRemainTime(Long remainTime) {
		this.remainTime = remainTime;
	}

	public Integer getBuyType() {
		return buyType;
	}

	public void setBuyType(Integer buyType) {
		this.buyType = buyType;
	}

	public BigDecimal getBuyPrice() {
		return buyPrice;
	}

	public void setBuyPrice(BigDecimal buyPrice) {
		this.buyPrice = buyPrice;
	}

	public BigDecimal getBuyRmb() {
		return buyRmb;
	}

	public void setBuyRmb(BigDecimal buyRmb) {
		this.buyRmb = buyRmb;
	}

	public Integer getBuyAmount() {
		return buyAmount;
	}

	public void setBuyAmount(Integer buyAmount) {
		this.buyAmount = buyAmount;
	}

	public void setId(Long id) {
		this.id=id;
	}

	public Long getId() {
		return this.id;
	}

	public void setSellUserId(Long sellUserId) {
		this.sellUserId=sellUserId;
	}

	public Long getSellUserId() {
		return this.sellUserId;
	}

	public void setBuyUserId(Long buyUserId) {
		this.buyUserId=buyUserId;
	}

	public Long getBuyUserId() {
		return this.buyUserId;
	}

	public void setQgOrderNumber(String qgOrderNumber) {
		this.qgOrderNumber=qgOrderNumber;
	}

	public String getQgOrderNumber() {
		return this.qgOrderNumber;
	}

	public void setCreateTime(Date createTime) {
		this.createTime=createTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public Date getEndpayTime() {
		return endpayTime;
	}

	public void setEndpayTime(Date endpayTime) {
		this.endpayTime = endpayTime;
	}

	public Date getEndfxTime() {
		return endfxTime;
	}

	public void setEndfxTime(Date endfxTime) {
		this.endfxTime = endfxTime;
	}

	public void setPayendTime(Date payendTime) {
		this.payendTime=payendTime;
	}

	public Date getPayendTime() {
		return this.payendTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime=endTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public void setState(Integer state) {
		this.state=state;
	}

	public Integer getState() {
		return this.state;
	}

	public void setPayImg(String payImg) {
		this.payImg=payImg;
	}

	public String getPayImg() {
		return this.payImg;
	}

	public String getSellCellPhone() {
		return sellCellPhone;
	}

	public void setSellCellPhone(String sellCellPhone) {
		this.sellCellPhone = sellCellPhone;
	}

	public String getBuyCellPhone() {
		return buyCellPhone;
	}

	public void setBuyCellPhone(String buyCellPhone) {
		this.buyCellPhone = buyCellPhone;
	}
}